package com.mrjy.maintain.bo;

import java.util.Map;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.mrjy.common.entity.SchoolInfo;
import com.mrjy.maintain.dto.SchoolInfoDTO;

public interface ISchoolInfoBo {
	
	//分页查询学校
	public Object queryPage(SchoolInfoDTO dto);
	
	
	//添加学校
	public Object txInsert(SchoolInfoDTO dto);
	
	//根据Id查找学校
	public Object queryById(Integer id);
	
	//根据ID修改学校
	public Object txUpdateById(SchoolInfoDTO dto);
		
	//根据ID删除学校
	public int deleteByIds(int[] ids);
		
	//根据ID禁用、起用学校
	public int txUpdateDisableFlag(SchoolInfo schoolInfo);

	// 通过推荐码来查询学校
	public Object txQuerySchoolByRecommendCode(String recommendCode, Integer userId);


	public Object exportSchoolInfoBack(HttpServletResponse response,SchoolInfoDTO dto);

	/**
	 * 定时器执行方法，检查过期校方
	 * @return
	 */
	public Map<String, Object> txCheckSchoolInfoStatusExpired();

	/**
	 * 通过手机号码检查其角色
	 * @param mobilePhone
	 * @return
	 */
	public Object checkRoleByMobilePhone(String mobilePhone);


	public Object drawSchool(SchoolInfoDTO dto, HttpSession session);


	public Object extrance(Integer schoolId, HttpSession session);


	public Object querySchoolByid(Integer schoolId, HttpSession session);


	public Object countTopicPageByInfo(HttpSession session, Integer videoTypeId);
	

}
